<template>
	<view class="container">
		<view class="cut"></view>
		<image class="icon" src="../../static/images/center/iconClock.png" mode=""></image>
		<view class="money">
			<text class="title">{{data.title}}</text>
			<text class="symbol">￥</text>
			<text class="count">{{Number(data.money).toFixed(2)}}</text>
		</view>
		<view class="cell" v-if="data.bank">
			<view>
				<image class="bankIcon" src="../../static/images/public/bank.png" mode=""></image>
				<text>银行卡</text>
			</view>
			<text>{{data.bank}} <text class="bank__code" v-if="data.code">{{data.code}}</text></text>
		</view>
		<view class="cell">
			<view>
				<image class="clockIcon" src="../../static/images/public/clock.png" mode=""></image>
				<text>到账时间</text>
			</view>
			<text>预计72小时内到账</text>
		</view>
		<!-- <view class="cell" v-if="data.poundage">
			<view>
				<image class="clockIcon" src="../../static/images/public/poundage.png" mode=""></image>
				<text>手续费</text>
			</view>
			<text>{{Number(data.poundage).toFixed(2)}}</text>
		</view> -->
		<button class="withdraw" type="default" @tap="finish">完成</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {}
			}
		},
		onLoad(options) {
			this.data = JSON.parse(decodeURIComponent(options.item))
		},
		methods: {
			finish() {
				uni.navigateBack({})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		text-align: center;
		position: relative;
		text-align: center;

		.cut {
			height: 10rpx;
			background: rgba(238, 238, 238, 1);
			margin-bottom: 100rpx;
		}

		.icon {
			display: block;
			margin: 0 auto 80rpx;
			width: 150rpx;
			height: 150rpx;
			border-radius: 75rpx;
		}

		.money {
			margin-bottom: 140rpx;
			.title {
				display: block;
				font-size: 26rpx;
				font-weight: 400;
				color: rgba(51, 51, 51, 1);
				margin-bottom: 36rpx;
			}

			.symbol {
				font-size: 30rpx;
				font-weight: bold;
				color: rgba(51, 51, 51, 1);
			}

			.count {
				font-size: 50rpx;
				font-weight: bold;
				color: rgba(51, 51, 51, 1);
			}
		}

		.cell {
			display: flex;
			justify-content: space-between;
			border-bottom: 1rpx solid #eee;
			line-height: 85rpx;
			font-size: 24rpx;
			font-weight: 400;
			color: rgba(51, 51, 51, 1);
			padding: 0 80rpx;
			.bank__code{
				margin-left: 15rpx;
			}
			view {
				display: flex;
				align-items: center;
				image {
					margin-right: 20rpx;
					width: 34rpx;
					height: 34rpx;
				}
				.bankIcon{
					width: 42rpx;
					height: 29rpx;
				}
			}
		}
		.withdraw{
			position: fixed;
			bottom: 60rpx;
			left: 75rpx;
			width:600rpx;
			height:80rpx;
			background:$theme-color;
			border-radius:40rpx;
			font-size:32rpx;
			font-weight:bold;
			color:rgba(255,255,255,1);
			line-height:80rpx;
			text-align: center;
		}
	}
</style>
